﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace InventoryManagementServer
{
    public class Login : HttpHandlerBase
    {
        public override void ProcessRequest(User user, HttpRequest request, string requestBody, HttpResponse response, ref string responseBody)
        {
            var permission = DataStore.Login(user);

            response.AddHeader("Permission", permission.ToString());
        }
    }
}